package com.qf.java2201.edu.userservice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.java2201.edu.userservice.mapper.RoleMapper;
import com.qf.java2201.edu.userservice.mapper.UserMapper;
import com.qf.java2201.edu.userservice.pojo.Role;
import com.qf.java2201.edu.userservice.pojo.User;
import com.qf.java2201.edu.userservice.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @date 2022/6/5
 * @desc
 */
@Service("roleService")
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {
    @Autowired
    private RoleMapper roleMapper;


    @Override
    public Set<String> getRolePermsByUserId(Long userId) {

        return roleMapper.selectRoleByUserId(userId);
    }
}
